﻿<Window x:Class="StateAnimationPlugin.Views.ListBoxMessageBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Height="400" Width="350">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Label x:Name="MessageLabel" Content="{Binding Message, FallbackValue=Message for user}"></Label>
        <ListBox x:Name="ListBox" Grid.Row="1" ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}"></ListBox>
        <StackPanel Orientation="Horizontal" FlowDirection="RightToLeft" Grid.Row="2">
            <Button Width="80" Content="OK" IsEnabled="{Binding CanProceed}" x:Name="OkButton" Click="OkButton_Click" />
            <Button Width="80" Content="Cancel" x:Name="CancelButton" Click="CancelButton_Click" />
        </StackPanel>
    </Grid>
</Window>
